package com.gking.aiService.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("accountbook")
public class AccountBook implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //用户id
    @TableField(value = "userId")
    private String userId;

    //时间
    @TableField(value = "time")
    private LocalDateTime time;

    //金额
    @TableField(value = "amount")
    private String amount;

    //类型
    @TableField(value = "type")
    private Integer type;

    //消费描述
    @TableField(value = "description")
    private String description;

    //是否删除 0存在 1删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //角色创建者id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //角色创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //角色更新者id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //角色更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //角色删除者id
    @TableField(value = "deleteUserId")
    private String deleteUserId;

    //角色删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;


}
